$(function(){

	// 等待确认
	$(document).on( "click", "#js_waitforevaluation", function(e) { 
		var url = $(this).attr("data-href");
		var user_id = $(this).attr("data-id");
		var _token = $("input[name='_token']").val();
		
	    $.post(url,{"user_id":user_id,"_token":_token},function(data){
	        
	      },'json').error(function(data) {
	          var obj = $.parseJSON(data.responseText);
	          $.each(obj.error_messages, function(i, item){
	            // console.info(item[0]);
	          });
	      }).success(function(data) {
	          layer.msg(data.data);
	          window.location.href=jumpWaitingForConfirmation;
	      });
	      stopDefault(e);
	})
	
	// //联系律师
	// $(".to_ask").click( function (e) {
	// 	 var iTop = (window.screen.availHeight-500)/2; //获得窗口的垂直位置;
	// 	 var iLeft = (window.screen.availWidth-600)/2; //获得窗口的水平位置;
	// 	 chatUrl = $(this).attr("data-href");
	// 	 window.open (chatUrl, "", "height=600, width=600, top="+iTop+", left="+iLeft+", toolbar =no, menubar=no, scrollbars=no, resizable=no, location=yes, status=no")

	// });


});
